import Calendar from './Calendar';
import separate from '../patternSeparator';

separate('单例模式');

let calendar:Calendar = Calendar.getInstance();
calendar.setDate(2016, 12, 31);
console.log(calendar.getDate());

calendar.setDate(2017, 1, 1);
console.log(calendar.getDate());